/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.meraklisina.latexeditor.wizard;

/**
 *
 * @author Acer
 */
public class FieldValidator{

    private static String validationMessage;

    public static boolean ValidateToolbarNameField(String toolbarName){
        boolean isValid = true;
        if(toolbarName.isEmpty()) {
            isValid = false;
            FieldValidator.setValidationMessage("Please enter toolbar name.");
        }
        return isValid;          
    }

    public static String getValidationMessage(){
        return FieldValidator.validationMessage;
    }

    public static void setValidationMessage(String message){
        FieldValidator.validationMessage = message;
    }
}
